import http from "@/utils/http"

export const GetProductTypeList = async (params)=>{
    return await http.get("/product-service/product_type/list",{
        params:params
    })
}

export const DeleteProductType = async (params)=>{
    return await http.delete("/product-service/product_type",{
        params:params
    })
}

export const GetProductTypeDetail = async (params)=>{
    return await http.get("/product-service/product_type",{
        params:params
    })
}

export const CreateProductType = async (data)=>{
    return await http.post("/product-service/product_type",data)
}

export const UpdateProductType = async (data)=>{
    return await http.put("/product-service/product_type",data)
}